package com.user.web;

import com.demo.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @GetMapping("/{id}")
    public User getUserById(@PathVariable String id) {
        System.out.println("id = " + id);
        User user = new User(id,"老八","123456",18);
        return user;
    }
}